package com.shejimoshi.单例模式.内部静态类;

public class Singleton {

    private Singleton() {};

    private static class InstanceSingleton{
        private static final Singleton singleton = new Singleton();
    }

    public static Singleton getInstance() {
        return InstanceSingleton.singleton;
    }
}
